<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <jsp:include page="../common/common.jsp"></jsp:include>
    <script type="text/javascript" src="/static/js/system/client_follow.js"></script>
</head>
<body>


    <div id="client_follow_toolbar">
        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" onclick="open_sign()">标记</a>
        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" onclick="open_save()">新增</a>
        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" onclick="open_edit()">编辑</a>
        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-cut',plain:true" onclick="remove()">删除</a>
        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-help',plain:true" onclick="flash()">刷新</a>

        模糊查询：<input type="text" class="easyui-textbox" id="name" prompt="客户姓名">

        精确查询：<input type="text" class="easyui-combobox" id="inputUser" prompt="录入人"
                  data-options="valueField:'id',textField:'username',url:'/employee/selectAllEmployees.do',panelHeight:'auto'"/>

        日期查询：
        <input type="text" class="easyui-datebox" id="beginTime" prompt="起始时间">
        <input type="text" class="easyui-datebox" id="endTime" prompt="终点时间">
        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true" onclick="query()" >查询</a>
    </div>


    <div id="client_follow_datagrid">

    </div>

    <div id="client_sign_button">
        <a class="easyui-linkbutton" iconCls="icon-ok" plain="true" onclick="sign()">标记</a>
        <a class="easyui-linkbutton" iconCls="icon-cancel" plain="true" onclick="cancel()">取消</a>
    </div>

    <div id="client_save_button">
        <a class="easyui-linkbutton" iconCls="icon-ok" plain="true" onclick="save()">保存</a>
        <a class="easyui-linkbutton" iconCls="icon-cancel" plain="true" onclick="cancel()">取消</a>
    </div>

    <div id="client_list_button">
        <a class="easyui-linkbutton" iconCls="icon-ok" plain="true" onclick="choose()">选中</a>
    </div>

    <div id="client_sign_dialog">
        <form id="client_sign_form" method="post">
            <table align="center" style="margin:0 auto;margin-top: 20px">
                <tr><input type="hidden" name="id"></tr>
                <tr>
                    <td>执行效果：</td>
                    <td>
                        <select class="easyui-combobox" name="result_id" style="width:100px;" data-options="panelHeight:'auto'">
                            <option value="1">差</option>
                            <option value="2">良</option>
                            <option value="3">优</option>
                        </select>
                    </td>
                </tr>
            </table>
        </form>
    </div>

    <div id="client_save_dialog">
        <form id="client_save_form" method="post">
            <table align="center" style="margin:0 auto;margin-top: 20px">
                <tr><input type="hidden" name="id"></tr>
                <tr>
                    <td>
                        <input type="text" class="easyui-textbox" name="name" data-options="label:'客户',readonly:true" style="width: 200px"/>
                    </td>
                    <td><a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true" onclick="list()" >查询客户</a></td>
                </tr>
                <tr>
                    <td>
                        <input type="text" style="width: 200px" class="easyui-datebox" name="followTime" data-options="label:'跟进时间'">
                    </td>
                    <td><input type="text" style="width: 200px" class="easyui-combobox" name="theme" data-options="label:'计划主题',valueField:'name',textField:'name',url:'/dictionary/getWords.do?sn=theme',panelHeight:'auto'"></td>
                </tr>
                <tr>
                    <td>
                        <input type="text" style="width: 200px" class="easyui-combobox" name="way" data-options="label:'实施方式',valueField:'name',textField:'name',url:'/dictionary/getWords.do?sn=way',panelHeight:'auto'">
                    </td>
                    <td><input type="text" style="width: 200px" class="easyui-textbox" name="remark" data-options="label:'备注'"></td>
                </tr>
                <tr>
                    <td colspan="2"><label style="font-size: 18px">详情：</label><textarea style="width: 100%" name="detail" cols="16" rows="10"></textarea></td>
                </tr>
            </table>
        </form>
    </div>

    <div id="client_list_dialog">
        <div id="client_list_datagrid">

        </div>
    </div>

</body>
</html>
